home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / et / tutorial / docs.lha / documentation / app_g.eps (.svg) < prev    next >
Encapsulated PostScript  |  1993-08-09  |  68KB  |  557x1021  |  8-bit (133 colors)
Labels: black | darkness
OCR: LösungenzzuzLernabschnittz2 G:Lösungenäder Übungen G.1.Lernabschnitt:12mmÜbung:mhello3 Dec$5516:5799915File:Shello3_loes.CSET++5Tutorial5Lemabschnitt:25Uebung:Shello3Page5 // //E++5Tutorial.ernabschnitt:52Uebung:hello3 11 }{ //Hello world5withET++: //55heString5hello5world"5s5shown5n5a5crollable5window //55and5nSaSecond5window5with5a5splitter //5SheScurrentSayoutScanbeSoaded from SaSile 11 #ifdef5ET DUMP 12 #include5'ET_Dump.h" 3 #endif 14 15 #include5ET++.h" 6 #include5 Collection.h" 555553 7 8 //----HelloView5-.. 59 20 class HelloView:Spublic5Views 21 55Textitem5viewtext; 22 public: 23 MetaDef(HelloView): 24 HelloView(Document5dp, RectangleStsExtent)55/iew(dp.StsExtent) (4 $5525 26 5voidDraw(Rectangles); 27 void SetText(Textitem5t): }; Metalmpl(HelloView,5TP(viewtext))); void HelloView::SetText(Textitem51) 4 5viewtext5-9; 555/SorceSheSextStem3o calculateStsSextent viewtext->CalcExtent(); 36 37 5/5nstall5heSextStem5nShis5view 88 viewtext->SetContainer(this); 55Force Redraw(); 42 void HelloView::Draw(Rectangle5) 44 viewtext->DrawAll(r); ----5HelloDocument5 99551 classHelloDocuments public Documents 52 55HelloViewSview; 53 555Textitem5text; 54 public: 55MetaDef(HelloDocument); 55HelloDocument(); 57 5-HelloDocument(); Windows DoMakeWindows(): 59 void DoRead(istream, SclassFile Type5); 560 voidDoWrite(ostream, 5nt); Ch.Frei,cH.Schaudt Software Schule Schweiz Anhang Seite:d45